package com.supreme.omsserver.service.orm;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supreme.omsserver.entity.mysql.SaleOrder;
import com.supreme.omsserver.mapper.SaleOrderMapper;
import org.springframework.stereotype.Service;

@Service
public class SaleOrderOrmService extends ServiceImpl<SaleOrderMapper, SaleOrder> {

    public SaleOrder getByOrderCode(String orderCode) {
        return this.getOne(Wrappers.lambdaQuery(SaleOrder.class).eq(SaleOrder::getTppOrderCode, orderCode));
    }
}




